public class Monster {
    String name,type;
    int HP;
    public void showInfo(){
        System.out.println("我是怪物,我的基本信息如下:");
        System.out.println("名字:"+name+",生命值:"+HP+",类型:"+type);
    }
}
